

package com.hazelcast.spi.impl.servicemanager;

import com.hazelcast.spi.impl.NodeEngine;

/**
 * Descriptor of Hazelcast managed service;
 * <p>
 * Used to describe a service provided by {@link ServiceDescriptorProvider}.
 */
public interface ServiceDescriptor {
    /**
     * @return name of the service;
     */
    String getServiceName();

    /**
     * @param nodeEngine - Hazelcast Node Engine;
     * @return Hazelcast service;
     */
    Object getService(NodeEngine nodeEngine);
}
